from ddddocr import DdddOcr
# 创建 OCR 对象
ocr = DdddOcr()

# 读取验证码图片
with open("img.png", 'rb') as f:
    img_bytes = f.read()

# 识别验证码
result = ocr.classification(img_bytes)

# 输出结果
print(result)
